<template>
  <div class="layout">
    <el-container class="layout-container">
      <el-aside :width="getIsCollapse ? '60px ':'190px'" class="layout-aside">
        <slide-bar></slide-bar>
      </el-aside>
      <el-container class="layout-content">
        <el-header class="layout-header">
           <layout-header></layout-header>
        </el-header>
        <el-main class="layout-main">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import {vuexMixin} from "../utils/mixins"
import SlideBar from "../components/layout/SlideBar.vue"
import LayoutHeader from "../components/layout/LayoutHearer.vue"

export default {
  name:"Layout",
  mixins:[vuexMixin],
  components:{
    SlideBar,
    LayoutHeader
  }
}
</script>

<style scoped lang="less">
  .layout{
    .layout-container{
      .layout-aside{
        height: 100vh;
        background: #545C64;
      }
      .layout-content{
        .layout-header{
          // background: #0f0;
        }
        .layout-main{
          height: calc(100vh - 60px);
          // background: #00f;
        }
      }
    }
  }

  .layout-aside::-webkit-scrollbar{
    display: none;
  }
</style>